﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainPage.aspx.cs" Inherits="Web.mainPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中油瑞飞协同办公系统</title>
<link href="App_Themes/NewPage/styles/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Javascript/jquery-1.5.2.min.js"></script>
<script src="App_Themes/NewPage/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="App_Themes/NewPage/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<link href="App_Themes/NewPage/styles/tables.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(function () {
        $(".url").click(function () {
            $(window.parent.document).find("#main").attr("src", $(this).attr("href"));
            return false;
        });
    });
</script>
<style>
.noview{ display:none;}
</style>
</head>
<body>
<div id="wraper">
<div class="title_bar">
    <h1>快捷功能</h1>
  </div>
  <ul id="quick">
    <li id="lSingleWell" runat="server"><a id="aSingleWell" runat="server" href="Views/SingleWellManage/SingleWellSearch.aspx" class="url"><img src="App_Themes/NewPage/icons/quick_jishixiaoxi.png" alt="单井数据查询" width="48" height="48" /><span>单井数据查询</span></a></li>
    <li id="lArchiveGloble" runat="server"><a  id="aArchiveGloble" runat="server" href="Views/SingleWellManage/ArchiveGlobalSearch.aspx"  class="url"><img src="App_Themes/NewPage/icons/quick_tongxunlu.png" alt="全库检索" width="48" height="48" /><span>全库检索</span></a></li>
    <li id="lArchiveSearch" runat="server"><a id="aArchiveSearch" runat="server" href="Views/ArchiveFlowView/ArchiveSearch.aspx"   class="url"><img src="App_Themes/NewPage/icons/quick_huiyishi.png" alt="档案查询" width="48" height="48" /><span>档案查询</span></a></li>
     <li><a href="Views/SystemLogin/ModifyPassword.aspx"   class="url"><img src="App_Themes/NewPage/icons/quick_gerenxinxi.png" alt="修改密码" width="48" height="48" /><span>修改密码</span></a></li>
  </ul>
   <div class="clear"></div>
  <div class="split_line"></div>
  <div class="noview">
  <div class="wraper2_left">
    <div class="title_bar">
      <h1></h1>
      <a href="#" target="_blank" class="more"><img src="App_Themes/NewPage/icons/more.gif" width="30" height="10" /></a> </div>
           <div  class="news_list">
      <asp:Repeater ID="rpNotice" runat="server" OnItemDataBound="rpNotice_ItemDataBound">
      <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
      </HeaderTemplate>
      <ItemTemplate>
      <tr><td><asp:HyperLink ID="linkUrl" runat="server" Target="_blank"></asp:HyperLink><span id="imgspan" runat="server"></span></td><td style="width:85px;"><span class="date">[<%#DateTime.Parse(Eval("CreateTime").ToString()).ToString("yyyy-MM-dd")%>]</span></td></tr>
      </ItemTemplate>
      <FooterTemplate>
   </table>
      </FooterTemplate>
    </asp:Repeater>
  </div>
  </div>
  <div class="wraper2_right">
    <div class="title_bar">
      <h1></h1>
      <a href="Views/InfoRelease/NewsActiveQuery.aspx" target="_blank" class="more"><img src="App_Themes/NewPage/icons/more.gif" width="30" height="10" /></a> </div>
      <div  class="news_list">
    <asp:Repeater ID="rpActive" runat="server" OnItemDataBound="rpActive_ItemDataBound">
      <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
      </HeaderTemplate>
      <ItemTemplate>
<tr><td><asp:HyperLink ID="linkUrl" runat="server" Target="_blank"></asp:HyperLink><span id="imgspan" runat="server"></span></td><td style="width:85px;"><span class="date">[<%#DateTime.Parse(Eval("CreateTime").ToString()).ToString("yyyy-MM-dd")%>]</span></td></tr>
      </ItemTemplate>
      <FooterTemplate>
            </table>
      </FooterTemplate>
    </asp:Repeater>
    </div>
  </div>

  <div class="clear"></div>
  <div class="title_bar">
    <h1>档案信息查询</h1>
     <a href="#" target="_blank" class="more"><img src="App_Themes/NewPage/icons/more.gif" width="30" height="10" /></a>
  </div>
  <div class="clear"></div>
  <div class="bottom_1pxwhite">
  <iframe frameborder="0" border="0"  height="260" width="100%" src="" onload='mainPagejs.reinitIframe(this);' style='overflow-x:hidden;background-color:#FFFFFF;'></iframe>
  </div>
    </div>
</div>
<script type="text/javascript">
    var mainPagejs = {
        //调整iframe的高度适应iframe的内容
        reinitIframe: function(iframe) {
            try {
                //如果实际高度小于布局高度，则适应高度
                if (iframe.contentWindow != null) {
                    if (iframe.scrollHeight < iframe.contentWindow.document.documentElement.scrollHeight) {
                        iframe.height = iframe.contentWindow.document.documentElement.scrollHeight.toString() + "px";
                    }
                }
                else if (iframe.document != null) {
                    if (iframe.scrollHeight < iframe.document.body.scrollHeight) {
                        iframe.height = iframe.document.body.scrollHeight.toString() + "px";
                    }
                }
            } catch (ex) { }
        }
    };
</script>
</body>
</html>
